package 面向对象_特征3;

public class 面向对象_1_继承2_子类 extends 面向对象_1_继承1_主类{

    String shool;

    public  void  print_1(){
        print();
        System.out.println(shool);
    }


    public static void main(String[] args) {
        面向对象_1_继承2_子类 dx  =  new 面向对象_1_继承2_子类();
        dx.age = 18;
        dx.name = "张园";
        dx.sex = "男";
        dx.shool = "咸阳";

        dx.print_1();
    }
}
